<?php

namespace app\common\model;

use think\Model;

/**
 * Class UserStudy
 * @package app\common\model
 *
 * @property-read int $id
 * @property int $video_id
 * @property int $uid
 * @property int $progress
 * @property float $play_time
 * @property int $today_time
 * @property int|string $update_time
 */
class UserStudy extends Model
{
    /**
     * 获取更新时间的时间戳
     * @return false|int
     */
    public function getTimestamp()
    {
        return strtotime($this->update_time);
    }
}
